//本地环境
const uploadPictureUrl = 'http://192.168.0.128:8890/personzone/upload/image'
const basePictureUrl = 'http://topsmart.xyz:1315/'
const websocketcUrl = '192.168.0.128:1314/person/personzone/'
    //本地nginx测试
    // const websocketcUrl = '192.168.0.128:801/personzone/personzone/'
    // const uploadPictureUrl = 'http://192.168.0.128:801/personzone/personzone/upload/image'
    // 打包环境--公司
    // const uploadPictureUrl = 'http://topsmart.xyz:1314/personzone/upload/image'
    // const basePictureUrl = 'http://topsmart.xyz:1315/'
    // const websocketcUrl = 'topsmart.xyz:1314/personzone/'
    // 打包环境--服务器
    // const uploadPictureUrl = 'http://111.22.209.108:33444/personzone/upload/image'
    // const basePictureUrl = 'http://topsmart.xyz:1315/'
    // const websocketcUrl = '111.22.209.108:33444/personzone/'

function checkSpecialKey(str) {
    var specialKey = "[`~!#$^&*()=|{}':;'\\[\\].<>/?~！#￥……&*（）——|{}【】‘；：”“'。，、？]‘'";
    for (var i = 0; i < str.length; i++) {
        if (specialKey.indexOf(str.substr(i, 1)) != -1) {
            return false;
        }
    }
    return true;

}

export {
    checkSpecialKey,
    uploadPictureUrl,
    basePictureUrl,
    websocketcUrl
}